home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tcl / read.z / read
Encoding:
Text File  |  1998-10-30  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. rrrreeeeaaaadddd((((3333TTTTccccllll))))                                                          rrrreeeeaaaadddd((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      read - Read from a file
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      rrrreeeeaaaadddd ?----nnnnoooonnnneeeewwwwlllliiiinnnneeee? _f_i_l_e_I_d
  13.      rrrreeeeaaaadddd _f_i_l_e_I_d _n_u_m_B_y_t_e_s
  14.  
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      In the first form, all of the remaining bytes are read from the file
  18.      given by _f_i_l_e_I_d; they are returned as the result of the command.  If the
  19.      ----nnnnoooonnnneeeewwwwlllliiiinnnneeee switch is specified then the last character of the file is
  20.      discarded if it is a newline.  In the second form, the extra argument
  21.      specifies how many bytes to read; exactly this many bytes will be read
  22.      and returned, unless there are fewer than _n_u_m_B_y_t_e_s bytes left in the
  23.      file; in this case, all the remaining bytes are returned.  _F_i_l_e_I_d must be
  24.      ssssttttddddiiiinnnn or the return value from a previous call to ooooppppeeeennnn; it must refer to
  25.      a file that was opened for reading.  Any existing end-of-file or error   |
  26.      condition on the file is cleared at the beginning of the rrrreeeeaaaadddd command.
  27.  
  28.  
  29. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  30.      file, read
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.